import { todoService } from '@server/services/todo-service'
import { ApiResponse } from '@data/api'

export default async function getTrashTodos() {
  const todos = await todoService.getDeletedTodos()

  const response: ApiResponse = {
    success: true,
    data: todos,
  }

  return response
}
